package top.lingchen.spring5.test;


import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
import top.lingchen.spring5.service.UserService;

/**
 * @Author 凌宸
 * @create 2021-12-01 下午 2:18
 * @Description
 * @Version 1.0
 */
//@ExtendWith(SpringExtension.class)
//@ContextConfiguration("classpath:bean1.xml"
@SpringJUnitConfig(locations = "classpath:bean1.xml")
public class JUnit5 {
    @Autowired
    private UserService userService;

    @Test
    public void test1(){
        userService.accountMoney();
    }
}
